//
//  ImageModel.m
//  Koala_Fm
//
//  Created by dllo on 16/1/23.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ImageModel.h"

@implementation ImageModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    if ([key isEqualToString:@"id"]) {
        self.imageId = value;
    }
    
    if ([key isEqualToString:@"u"]) {
        self.name = value[@"name"];
        self.header = [value[@"header"]firstObject];
        
    }
    if ([key isEqualToString:@"image"]) {
        self.width = value[@"width"];
        self.height = value[@"height"];
        self.big = [value[@"big"] firstObject];
        
    }
    if ([key isEqualToString:@"gif"]){
        
        self.widthD = value[@"width"];
        self.heightD = value[@"height"];
        self.images = [value[@"images"] firstObject];
        self.comment = value[@"comment"];
    }
    
}


@end
